package com.mzj.saas.rent;


import com.haixiaoke.saas.repository.core.AjaxResult;
import com.haixiaoke.saas.repository.core.BaseController;
import com.haixiaoke.saas.repository.pojo.PayType;
import com.haixiaoke.saas.repository.service.IPayTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 押付方式Controller
 *
 * @author zhiping
 * @date 2023-05-23
 */
@RestController
@RequestMapping("/base/payType")
public class PayTypeController extends BaseController {

    @Autowired
    private IPayTypeService payTypeService;


    @GetMapping("/list")
    public AjaxResult list(PayType payType) {
        return AjaxResult.success(payTypeService.selectPayTypeList(payType));
    }

}
